{extend name='admin@main'}

{block name="content"}

<div class="layui-card-body" style="padding-top: 20px;height: 100%">
    <form  class="layui-form" action="{:request()->url()}" data-auto="true" method="post">
        <div class="layui-card-body" style="background-color: #fff">

            <div class="layui-form-item" id="media">
                <label class="layui-form-label label-required">品牌图<br>（多图）<span class="nowrap color-red">700*任意高度</span></label>
                <div class="layui-input-block layui-form">
                    <input name="intro" data-limit="20" type="hidden" value="{$vo.intro|default=''}">
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-input-inline">
                    <button type="submit" class="layui-btn layui-btn-normal " >保存</button>
                </div>
            </div>
        </div>

    </form>
</div>

{/block}

{block name='script'}

<script>
    require(['vue', 'files', 'form'], function (Vue) {
        var vm = new Vue({
            el: "#media",
            data: {},
            mounted: function () {
                this.$nextTick(function () {
                    //写在这里，会等页面渲染之后，再执行
                    // $('[name="logo"]').uploadOneImage();
                    $('[name="intro"]').uploadMultipleImage();
                    $.form.reInit($('#media'));
                });
            },

        });

    })
</script>

<script>
    window.form.render();
</script>
{/block}
